import javax.swing.*;

public class Frame extends JFrame {
   // extends adds ur methods to jframe method java already has in its memory

    public static void main (String[] args) {
    	
    	new Frame().setVisible(true);
    	// Show the frame
    }
    
    private Frame() {
    	super ("");     // title of the frame you want to show
    		// title will be from graphic that will be shown
        setSize(850, 700); // (Width, Height)
    	setResizable(true); //user can change the size of the frame
    	setDefaultCloseOperation(EXIT_ON_CLOSE);
    }
    public static void setNativeLookAndFeel()
    {
       try
       {
          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
       }
           catch(Exception e)
          {
             System.out.println("Error setting native LAF: "+e);
          }
    }
    
    public static void setJavaLookAndFeel()
    {
       try
       {
          UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
       }
           catch(Exception e)
          {
             System.out.println("Error setting Java LAF: "+e);
          }
    }
}
          
    // http://www.youtube.com/watch?v=706Ye4ubtEY           used 12/3/12
         